Auto merge of #5269 - orestisf1993:issue-5265, r=matklad
authorbors <bors@rust-lang.org>
Sat, 31 Mar 2018 14:51:14 +0000 (14:51 +0000)
committerbors <bors@rust-lang.org>
Sat, 31 Mar 2018 14:51:14 +0000 (14:51 +0000)
cargo_new: remove redundant leading new lines from ignore files

Only add a leading new line in `.gitignore`/`.hgignore`/`.ignore` files when
the file existed before `cargo new`.

Fixes #5265.


Trivial merge